

function login() {
    $.post("/user/login", $("#loginForm").serialize(), function (info) {

        if (info.length == 0) {
            alert("用户名密码错误");
        } else {
            location.href="/html/mainPage.html";
        }
    });

}



    
